]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
padOsd: Add missing 'closed' signal
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 1 Nov 2019 19:01:31 +0000 (20:01 +0100)
committerCarlos Garnacho <mrgarnacho@gmail.com>
Fri, 1 Nov 2019 19:23:14 +0000 (19:23 +0000)
This wasn't added on the GObject-ification in commit c4c5c4fd5c. This
introduced warnings and misbehaviors when closing the dialog. (Eg.
pressing the "show OSD" pad action would show stack different dialogs
on top each other).

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/800

js/ui/padOsd.js

index 1a09420a699dba14d5c45a226aa14da0e28831ac..00a35497e2eb241dbbf853d3fe6184d9b3267f47 100644 (file)
@@ -618,7 +618,10 @@ var PadDiagram = GObject.registerClass({
 });
 
 var PadOsd = GObject.registerClass({
-    Signals: { 'pad-selected': { param_types: [Clutter.InputDevice.$gtype] } }
+    Signals: {
+        'pad-selected': { param_types: [Clutter.InputDevice.$gtype] },
+        'closed': {}
+    }
 }, class PadOsd extends St.BoxLayout {
     _init(padDevice, settings, imagePath, editionMode, monitorIndex) {
         super._init({